[IPhone advanced] XMPP-based IOS chat client (IOS client 1), iPhone exmpp
After introducing the server, we will focus on writing our own IOS client program.
Let's take a look at what we have done
First download the xmppframework framework.
Click ZIP to download
Next, use Xcode to create a project
Drag the following files into the new project
Add framewor
Next, we will introduce XMPP in this chapter.
To facilitate program calling, we will write some main XMPP methods in appdelegate.
The methods in appdelegate. m are as follows:
-(Void) setupstream {// initialize xmppstream = [[xmppstream alloc] init]; [xmppstream adddelegate: Self delegatequeue: Upload ()];}-(void) goonline {// sending online status xmpppresence * presence = [xmpppresence presence]; [[self
XMPP (extensible Messaging and Presence Protocol, formerly known as Jabber) protocol introductionExtensible Message Processing Site Protocol (extensible Messaging and Presence Protocol, XMPP) is a near-end streaming instant-messaging protocol based on Extensible Markup Language (extensible Markup Language, XML). It embeds field and context sensitive information tags into XML structured data, enabling instan
Then the previous article continued to study and summarize.XMPP ClientOne design standard for XMPP systems is the need to support simple clients. In fact, the XMPP system architecture has only a few limitations on clients. The features that an XMPP client must support are:
Communicates with the XMPP server via
XMPP and xmpp protocolsXMPP-instant messaging technology Overview
(IM -- Instant Messaging) supports real-time online conversations. If you want to send a message, you need to open a small window so that users and their friends can enter the information and both parties can see that there are many IM systems in the conversation content, for example, AOL, Yahoo IM, MSN, and QQ, the biggest difference lies in
[] args) {conn () ;}// connection server public static void conn () {try {// configure the connection xmpp_conf = new ConnectionConfiguration (xmpp_ip, xmpp_port, xmpp_host); xmpp_conf.setReconnectionAllowed (true); xmpp_conf.setSecurityMode (SecurityMode. disabled); disabled (false); xmpp_conf.setCompressionEnabled (false); // connect and log on to xmpp_conn = new XMPPConnection (xmpp_conf) based on the user name and password; Enabled = true; xmpp_conn.connect (); xmpp_conn.login (user, pass);
XMPP protocol and practice, XMPP protocol practice
I. XMPP protocol
XMPP(Extensible Messaging and Presence Protocol scalable Message Processing site Protocol) isProtocols Based on Extensible Markup Language (XML)It is used for instant messaging (IM) and online on-site detection. The predecessor of
Ios xmpp-based development-XMPPFramewok framework (1): Basic knowledge, xmpp-xmppframewok
Recently, the open source tt of the mogujie.com team made me interested in im. Then I found XMPPFramework on the Internet for study,
I have written the following series of tutorials for your reference. Please forgive me for your correction.
Directory Index
IOS development based on
Xmpp sorting notes: Quick environment configuration (with installation package included) and xmpp installation package
Although the xmpp framework of huanxin is very popular, it also has some drawbacks. Some of the code of the huanxin framework is not open-source, and the charging mode is not scientific. The number of users is always lower than that of the Free L
Xmpp is connected to the server and authenticated successfully. xmpp is used for authentication.
* XMPP features that all requests are implemented through proxy** Because xmpp communicates data through the network server, all requests are submitted to the server for processing.** After the server is processed, it stops
XMPP protocol for instant messaging underlying writing (zero)-nonsense and preparation before the beginning, xmpp instant messaging
I want to write a summary for a long time, but I have been busy and have no time to calm down and do such a thing.
I once told my eldest brother Qin that I didn't have the open source spirit, but because there were too many things and I didn't have time to write a blog. I didn'
I recently read about the XMPP framework. Taking text chat as an example, the message to be sent is:
[HTML]View
Plaincopy
In the base, from is the message sent from the user, to is the message sent to the user, XMPP users are in the form of mailbox. Body is the message text we send.
Now, let's develop an iOS chat client program based on XMPP. First, we
Just take a look at the import steps for XMPP-related frameworks for easy viewing laterI. Framework Address1.
xmppframework
frame address available in other languageshttp://xmpp.org/xmpp-software/libraries/2. Download the Xmppframework framework:Https://github.com/robbiehanson/XMPPFramework3.git CloneHttps://github.com/robbiehanson/XMPPFramework.gitTwo. Import the relevant framework
Cocoa
Build an XMPP environment and build an xmpp EnvironmentXMPP Environment Construction
1> several auxiliary tools are required to build an XMPP environment:
Java
Openfire is developed in Java, so we need to install the Java environment first.
XAMPP
XAMPP (Apache + MySQL + PHP + PERL) is a powerful software package for building XAMPP software stations
Recently looked at the framework for XMPP, as an example of text chat, the message that needs to be sent is:Kizhong from is the message from which user, to is sent to who, the user of XMPP is in the form of a mailbox. Body is the text of the message we send.Well, in this case, we will develop an XMPP-based iOS chat client program, first we need
JID:The address of an XMPP entity, called Jabber Identifier or Jid, acts like an IP address. A valid Jid includes the node name, domain name resource name, in the format: Jid=[node ' @ ']domain['/' resource]Namespace for XMPP protocol:Jabber:iq:private-Private data storage for local user private settings, such as user notes.Jabber:iq:conference--General meetings for information sharing among multiple usersj
XMPP-IOS instant messaging development environment, xmpp-ios instant messaging1. Install MySQL
Sudo vi ~ /. Bash_profile
Enter I to enter the editing mode, and enter:
# mysqlalias mysql='/usr/local/mysql/bin/mysql'alias mysqladmin='/usr/local/mysql/bin/mysqladmin'# lsalias ls='ls -G'
Press ESC to exit the editing mode. Enter:
:wq
Save the modification content and exit and restart the terminal program.3. Mo
Xmpp notes: user network connection and friend management, xmpp network connection
In xmppUser connection moduleIncluding display of user online and offline information, user logon, and user registration;Friend ModuleIncluding adding friends, deleting friends, and displaying friends lists.
XmppStream is the class responsible for data transmission in xmpp. during
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.